﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Web.Wap.Code;
using DotNet.Common.NHibernateUtil;

namespace ZLCMS.Web.Wap.Member
{
    public partial class UnbindWeixin : MemberPageBase
    {
        protected string ResultMessage { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            using(NHibernate.ISession session = SessionFactoryHelper.CreateSession())
            {
                session.CreateSQLQuery("update member_info set wx_open_id=null where account_id=:acc")
                    .SetParameter("acc", CurrentMemberAccount)
                    .ExecuteUpdate();
                ResultMessage = "解绑成功";
            }
        }
    }
}